|
|
|
|
|
|
|
is referred to as the replication topology. We cover the various topologies in this section. It is important, however, to note that there is no universal best topology. You need to investigate the needs of your application's users thoroughly before you can decide on which topology to implement. |
|
|
|
|
|
|
|
|
The most commonly used topology implemented in database replication is the star topology. In the star topology, there is one central database, usually the Design Master, with which all members of the replica set perform a synchronization. No replication occurs directly between members of the replica set. As an example, let's assume you created a replica set with one Design Master (DM) and four replicas (A, B, C, D). To begin, A first synchronizes with DM. Next, B synchronizes with DM, then C with DM, and D with DM. A, B, C, and D don't talk to one another directly, but pass all data changes through DM. |
|
|
|
|
|
|
|
|
The star topology is the simplest topology to implement. It doesn't require a strict synchronization order be maintained. Replica A could synchronize after B, and C could synchronize before B. This is therefore a good topology to use when you are working with a large number of replicas, such as in a sales force automation application. Users can synchronize in this topology without having to worry about when other members of the replica set synchronize. |
|
|
|
|
|
|
|
|
There are two drawbacks to the star topology, however, of which you should be aware. First of all, the central database with which all replicas synchronize serves as a single point of failure. If this database is down, no one can talk to anyone else. You should therefore be prepared to move one of the replica set members into the central role if necessary. Remember, though, that use of a backup is not recommended as a means of safeguarding a database in a replicated environment. |
|
|
|
|
|
|
|
|
The other problem with this topology is that it permits some replicas to synchronize infrequently, or not at all. This is actually a very common problem in contact management databases, because some users don't see the need for sharing their entries with other members of the replica set, or just don't get around to performing the synchronization. |
|
|
|
|
| |
|
|
|
|
It is not realistic to believe that humans can stick to a strict replication schedule. Or that they will voluntarily perform a synchronization if it is difficult. If implemented in an end-user application, synchronization must be made extremely easy to use, or it will not be used. |
|
|
|
|
|
|
|
|
|
|
A linear topology can also be used for synchronization. In this topology, replica A synchronizes with B, then B synchronizes with C, and then C synchronizes with D. To restart the process, D would synchronize with C, and then C with B, and finally B with A. |
|
|
|
|
|